export class IndexService {
  getStatusName(content) {
    content.forEach(item => {
      switch (item.orderStatus) {
        case 1:
          item.statusName = '待提交';
          break;
        case 2:
          item.statusName = '待平台审核';
          break;
        case 3:
          item.statusName = '待支付';
          break;
        case 8:
          item.statusName = '部分收货';
          break;
        case 7:
          item.statusName = '待收货';
          break;
        case 6:
          item.statusName = '待发货';
          break;
        case 9:
          item.statusName = '已完成';
          break;
        case 10:
          item.statusName = '已取消';
          break;
        case 11:
          item.statusName = '校验失败!';
          break;
      }
    });
  }
}
